<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbpedestadCreateDlg" widgetVar="PyfntbpedestadCreateDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.CreatePyfntbpedestadTitle}">

            <h:form id="PyfntbpedestadCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{pyfntbpedestadController.selected != null}">

                        <p:outputLabel value="#{myBundle.CreatePyfntbpedestadLabel_referencia}" for="referencia" />
                        <p:inputText id="referencia" value="#{pyfntbpedestadController.selected.referencia}" title="#{myBundle.CreatePyfntbpedestadTitle_referencia}" required="true" requiredMessage="#{myBundle.CreatePyfntbpedestadRequiredMessage_referencia}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbpedestadLabel_fecharef}" for="fecharef" />
                        <p:calendar id="fecharef" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbpedestadController.selected.fecharef}" title="#{myBundle.EditPyfntbpedestadTitle_fecharef}" required="true" requiredMessage="#{myBundle.EditPyfntbpedestadRequiredMessage_fecharef}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbpedestadLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbpedestadController.selected.fecharegistro}" title="#{myBundle.EditPyfntbpedestadTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditPyfntbpedestadRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbpedestadLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyfntbpedestadController.selected.observaciones}" title="#{myBundle.CreatePyfntbpedestadTitle_observaciones}" required="true" requiredMessage="#{myBundle.CreatePyfntbpedestadRequiredMessage_observaciones}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbpedestadLabel_fechaimpresion}" for="fechaimpresion" />
                        <p:calendar id="fechaimpresion" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbpedestadController.selected.fechaimpresion}" title="#{myBundle.EditPyfntbpedestadTitle_fechaimpresion}" required="true" requiredMessage="#{myBundle.EditPyfntbpedestadRequiredMessage_fechaimpresion}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbpedestadLabel_descripcion}" for="descripcion" />
                        <p:inputText id="descripcion" value="#{pyfntbpedestadController.selected.descripcion}" title="#{myBundle.CreatePyfntbpedestadTitle_descripcion}" required="true" requiredMessage="#{myBundle.CreatePyfntbpedestadRequiredMessage_descripcion}"/>

                        <p:outputLabel value="#{myBundle.CreatePyfntbpedestadLabel_scittbfadeceid}" for="scittbfadeceid" />
                        <p:selectOneMenu id="scittbfadeceid" value="#{pyfntbpedestadController.selected.scittbfadeceid}" >
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scittbfadeceController.items}"
                                           var="scittbfadeceidItem"
                                           itemValue="#{scittbfadeceidItem}"
                                           itemLabel="#{scittbfadeceidItem.scittbfadeceid.toString()}"
                                           />
                            <f:converter binding="#{scittbfadeceConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreatePyfntbpedestadLabel_scittbescunid}" for="scittbescunid" />
                        <p:selectOneMenu id="scittbescunid" value="#{pyfntbpedestadController.selected.scittbescunid}" >
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scittbescunController.items}"
                                           var="scittbescunidItem"
                                           itemValue="#{scittbescunidItem}"
                                           itemLabel="#{scittbescunidItem.scittbescunid.toString()}"
                                           />
                            <f:converter binding="#{scittbescunConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreatePyfntbpedestadLabel_pyfntbpedidoid}" for="pyfntbpedidoid" />
                        <p:selectOneMenu id="pyfntbpedidoid" value="#{pyfntbpedestadController.selected.pyfntbpedidoid}" required="true" requiredMessage="#{myBundle.EditPyfntbpedestadRequiredMessage_pyfntbpedidoid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbpedidoController.items}"
                                           var="pyfntbpedidoidItem"
                                           itemValue="#{pyfntbpedidoidItem}"
                                           itemLabel="#{pyfntbpedidoidItem.pyfntbpedidoid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbpedidoConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.CreatePyfntbpedestadLabel_pyfntbestadoid}" for="pyfntbestadoid" />
                        <p:selectOneMenu id="pyfntbestadoid" value="#{pyfntbpedestadController.selected.pyfntbestadoid}" required="true" requiredMessage="#{myBundle.EditPyfntbpedestadRequiredMessage_pyfntbestadoid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbestadoController.items}"
                                           var="pyfntbestadoidItem"
                                           itemValue="#{pyfntbestadoidItem}"
                                           itemLabel="#{pyfntbestadoidItem.pyfntbestadoid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbestadoConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbpedestadController.saveNew}" value="#{myBundle.Save}" update="display,:PyfntbpedestadListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbpedestadCreateDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbpedestadCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
